package com.blue.bluecode;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.blue.bluecode.helper.ToastHelper;


public class ButtonActivity extends Activity {

    private Button btnBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_button);
        getActionBar().setDisplayHomeAsUpEnabled(true);

        btnBtn = (Button) findViewById(R.id.btnBtn);
        btnBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ToastHelper.showShort(ButtonActivity.this, "点击了button");
            }
        });
//        btnBtn.setBackground();
    }


}
